package com.itheima.service;

import com.itheima.domain.dto.VoucherOrderMessageDTO;
import com.itheima.domain.entity.VoucherOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.vo.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 坤哥
 * @since 2025-10-06
 */
public interface IVoucherOrderService extends IService<VoucherOrder> {
    /**
     * 抢购优惠券
     */
    Result seckillVoucher(Long voucherId);
    /**
     * 创建订单，扣减库存
     */
    void createOrder(VoucherOrderMessageDTO orderMessage);
}
